home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 5 / Gold Medal Software - Volume 5 (Gold Medal) (1995).iso / database / cardx135.arj / CINSTALL.BAT < prev    next >
DOS Batch File  |  1993-11-04  |  2KB  |  68 lines

  1. @echo off
  2. cls
  3. @echo -------------- Install Cardx --------------
  4. @echo !!!!!! Back-up your Databases, *.CDX !!!!!!
  5. @echo Change to the Floppy Drive this disk is in.
  6. @echo         On the comand line type:
  7. @echo CINSTALL X:Source Drive X:Destination Drive
  8. @echo -------------------------------------------
  9. @echo               CINSTALL %1 %2
  10. @echo -------------------------------------------
  11. @echo Type Ctrl/Break to Exit ...
  12. pause
  13. IF %1test == %2test goto same
  14. IF %1test == test goto same
  15. IF %2test == test goto same
  16. @echo on
  17. %2
  18. cd\
  19. @echo off
  20. if exist %2\cardx\cardx.exe goto nofile
  21. @echo -----------------------------
  22. @echo CARDX directory doesn't exist
  23. @echo      Creating directory
  24. @echo -----------------------------
  25. @echo on
  26. md cardx
  27. @echo off
  28. goto unpack
  29. :nofile
  30. @echo off
  31. @echo ---------------------------
  32. @echo   CARDX directory exists
  33. @echo Changing to CARDX directory
  34. @echo ---------------------------
  35. :unpack
  36. @echo on
  37. cd cardx
  38. @echo off
  39. @echo --------------------------------
  40. @echo Unpacking files to the directory
  41. @echo --------------------------------
  42. %1\cardx135
  43. @echo -----------------------------------
  44. @echo Copying Start-up batch files to %2\
  45. @echo -----------------------------------
  46. @echo on
  47. copy %1\cardx.bat
  48. copy %1\cardxm.bat
  49. copy cardx.bat %2\*.*
  50. copy cardxm.bat %2\*.*
  51. copy %1\cardx.add
  52. @echo off
  53. cardx *.*
  54. cd\
  55. @echo off
  56. goto exit
  57. :same
  58. @echo off
  59. @echo ---------------------------
  60. @echo Nothing on command line or
  61. @echo (D:)rives must be different
  62. @echo Floppy in A: drive and
  63. @echo program to reside on C:
  64. @echo ---------------------------
  65. @echo      CINSTALL A: C:
  66. @echo ---------------------------
  67. :exit
  68.